package com.google.common.collect;

import com.google.common.base.Function;

import java.util.concurrent.ConcurrentMap;

public class MigrateMap {

    public static <K, V> ConcurrentMap<K, V> makeComputingMap(MapMaker mapMaker,
                                                              Function<? super K, ? extends V> function) {
        return mapMaker.makeComputingMap(function);
    }


    public static <K, V> ConcurrentMap<K, V> makeComputingMap(Function<? super K, ? extends V> function) {
        return new MapMaker().makeComputingMap(function);
    }
}
